#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n,i,j,m;
	scanf("%d", &n);
	if(n>0&&n<10)
	for (i = 1; i <= n; i++)
	{
		m = i;
		j = n-i;
		while(j)
		{
			printf(" ");
			j--;
		}
		while (m)
		{
			printf("%d ", i);
			m--;
		}
		printf("\n");
	}
	return 0;
}